from String
Converts a string representation of a module type to the corresponding ModuleType
enum constant.
The matching is case-sensitive and expects the exact string names as used in system configurations or data feeds (e.g., "Gallery", "Image", "Ticker").
Example:
ModuleType type = ModuleType.fromString("Image");
Content copied to clipboard
Recognized strings and their corresponding types:
- "Gallery" - GALLERY
- "Image" - IMAGE
- "Ticker" - TICKER
- "Weather" - WEATHER
- "Clock" - CLOCK
- "StaticImage" - STATIC_IMAGE
- "Flash" - FLASH
- "Web" - WEB
- "TV" - TV
- "Keyboard" - KEYBOARD
- "Text" - TEXT
- "RichText" - RICH_TEXT
- "HotSpot" - HOT_SPOT
- "QRCode" - QR_CODE
- "Gadget" - GADGET
- "ScrollViewer" - SCROLL_VIEWER
Return
The corresponding ModuleType
enum constant, or null
if the input string does not match any known module type.
Parameters
x
The string value representing the module type.